import request from '@/auth/request.js'
// import qs from 'qs'

export const gridApi = {
  getGridData: '/api/grid/get',
  deleteGridData: '/api/grid/delete',
  addGridData: '/api/grid/add',
  editGridData: '/api/grid/edit'
}

// 查询表格数据
export function apiGetGridData (data) {
  return request.post(gridApi.getGridData, data)
}

// 删除表格数据
export function apiDeleteGridData (data) {
  return request.post(gridApi.deleteGridData, data)
}

// 新增表格数据
export function apiAddGridData (data) {
  return request.post(gridApi.addGridData, data)
}

// 编辑表格数据
export function apiEditGridData (data) {
  return request.post(gridApi.editGridData, data)
}
